﻿using AutoMapper;
using Sheep_Breeding.Domain;
using Sheep_Breeding.Write.Api.DTOSheep;

namespace Sheep_Breeding.Write.Api.Common
{
    public class MapperingProfil : Profile
    {
        public MapperingProfil()
        {

            //羊场管理新增
            CreateMap<CreateSheepfarmDto,Sheepfarm_management>().ReverseMap();

            //羊场管理修改
            CreateMap<UpdateSheepfarm,Sheepfarm_management>().ReverseMap();

            // 期初表新增
            CreateMap<CreatePhaseBeginDTo, PhaseBegin>().ReverseMap();
        }
    }
}
